﻿using Inv_4Service.dtos;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.ServiceModel.Web;
using System.Text;

namespace Inv_4Service
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "IHomeService" in both code and config file together.
    [ServiceContract]
    public interface IHomeService
    {
        [OperationContract, WebGet(ResponseFormat = WebMessageFormat.Json)]
        string Hello();

        [OperationContract, WebGet(ResponseFormat = WebMessageFormat.Json)]
        NewsDto[] News();
    }
}
